﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class ScheduleManager
    {
        public void AddSchedule(Schedule sch)
        {
            new ScheduleService().AddSchedule(sch);
        }
        public List<Schedule> GetScheduleByDate(DateTime date)
        {
            return new ScheduleService().GetScheduleByDate(date);
        }
        public Schedule GetScheduleById(int id)
        {
            return new ScheduleService().GetScheduleById(id);
        }
        public void DeleteSchdeule(int id)
        {
            new ScheduleService().DeleteSchdeule(id);
        }
        public void UpdateSchedule(Schedule sch)
        {
            new ScheduleService().UpdateSchedule(sch);
        }
        public List<Schedule> GetScheduleByDeptNameCreateTimeName(DateTime begin, DateTime end, string deptName, string name)
        {
            return new ScheduleService().GetScheduleByDeptNameCreateTimeName(begin, end, deptName, name);
        }
    }
}
